package com.qf.first.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

@Data
@ApiModel("财务实体类")
public class Finance {
    @ApiModelProperty("商户id")
    private Long shopid;
    @ApiModelProperty("商户名")
    private String shopname;
    @ApiModelProperty("食物名")
    private Long foodname;
    @ApiModelProperty("食物分类")
    private String categoryname;
    @ApiModelProperty("餐品总价")
    private double orderAllPrice;
    @ApiModelProperty("订单创建时间")
    private Timestamp orderCreatTime;

    public Finance() {
    }

    public Finance(Long shopid, String shopname, Long foodname, String categoryname, double orderAllPrice, Timestamp orderCreatTime) {
        this.shopid = shopid;
        this.shopname = shopname;
        this.foodname = foodname;
        this.categoryname = categoryname;
        this.orderAllPrice = orderAllPrice;
        this.orderCreatTime = orderCreatTime;
    }

    public Finance(String shopname, Long foodname, String categoryname, double orderAllPrice, Timestamp orderCreatTime) {
        this.shopname = shopname;
        this.foodname = foodname;
        this.categoryname = categoryname;
        this.orderAllPrice = orderAllPrice;
        this.orderCreatTime = orderCreatTime;
    }

    public Finance(Long foodname, String categoryname, double orderAllPrice, Timestamp orderCreatTime) {
        this.foodname = foodname;
        this.categoryname = categoryname;
        this.orderAllPrice = orderAllPrice;
        this.orderCreatTime = orderCreatTime;
    }

    public Finance(Long shopid, Long foodname, String categoryname, double orderAllPrice, Timestamp orderCreatTime) {
        this.shopid = shopid;
        this.foodname = foodname;
        this.categoryname = categoryname;
        this.orderAllPrice = orderAllPrice;
        this.orderCreatTime = orderCreatTime;
    }
}
